package com.wl.api.model.system;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * 国内物流取货 价格阶梯表
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "security_channel_domestic_ladder_price")
public class SecurityChannelDomesticLadderPrice implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 编号 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/** 国内物流ID */
	@TableField(value = "domestic_id")
	private Integer domesticId;

	/** 起始重量 */
	@TableField(value = "weight_from")
	private BigDecimal weightFrom;

	/** 终始重量 */
	@TableField(value = "weight_to")
	private BigDecimal weightTo;

	/** 价格 */
	private BigDecimal amount;

	/** 创建时间 */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	/** 修改人名称 */
	@TableField(value = "update_user")
	private String updateUser;

	/**  */
	@TableField(value = "update_user_id")
	private Long updateUserId;
	
	public SecurityChannelDomesticLadderPrice buildDomesticId(Integer domesticId) {
		this.domesticId = domesticId;
		return this;
	}
	
	public SecurityChannelDomesticLadderPrice buildId(Integer id) {
		this.id = id;
		return this;
	}

}
